/*
 * Copyright (c) 2019，2039, daojian.co and/or its affiliates. All rights reserved.
 *
 */

package co.bugu.code.analysis.infra.entity;

import co.bugu.framework.db.Entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 实体类，和数据库一一对应
 *
 * @author coder helper
 * @version 1.0.0
 * @createdAt 2022-11-21 11:05
 * @updatedAt 2022-11-21 11:05
 */
@ApiModel("提交记录")
@Data
@Entity
public class Commit {
    @ApiModelProperty("主键")
    private Long id;
    @ApiModelProperty("提交ID")
    private String commitId;
    @ApiModelProperty("短ID")
    private String shortId;
    @ApiModelProperty("项目ID")
    private Long projectId;
    @ApiModelProperty("标题")
    private String title;
    @ApiModelProperty("消息")
    private String message;
    @ApiModelProperty("提交者名称")
    private String committerName;
    @ApiModelProperty("提交者邮箱")
    private String committerEmail;
    @ApiModelProperty("作者名称")
    private String authorName;
    @ApiModelProperty("作者邮箱")
    private String authorEmail;
    @ApiModelProperty("提交时间")
    private Date committedDate;
    @ApiModelProperty("作者提交时间")
    private Date authoredDate;
    @ApiModelProperty("创建时间")
    private Date createdAt;
    @ApiModelProperty("时间戳")
    private Date timestamp;
    @ApiModelProperty("状态")
    private String status;
    @ApiModelProperty("网页地址")
    private String webUrl;
    @ApiModelProperty("URL")
    private String url;
    @ApiModelProperty("添加行数")
    private Integer additions;
    @ApiModelProperty("删除行数")
    private Integer deletions;
    @ApiModelProperty("变更总行数")
    private Integer total;
    private Long branchId;
    @ApiModelProperty("分支名称")
    private String branchName;
    @ApiModelProperty("是否删除，0未删除，1已删除")
    private Integer isDel;
    @ApiModelProperty("创建人姓名（ID）")
    private String createUser;
    @ApiModelProperty("更新人姓名（ID）")
    private String updateUser;
    @ApiModelProperty("创建时间")
    private Date createTime;
    @ApiModelProperty("更新时间")
    private Date updateTime;
}
